package com.vincent.template.dto.sys.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author Vincent Wang
 * @date 2021/2/28 20:44
 */
@ApiModel(value = "UserPwdResetDto", description = "用户密码重置")
public class UserPwdResetDto {

    @ApiModelProperty(value = "旧密码", required = true)
    @NotBlank
    @Length(max = 16)
    private String oldPwd;

    @ApiModelProperty(value = "新密码", required = true)
    @NotBlank
    @Length(max = 16)
    private String newPwd;

    public String getOldPwd() {
        return oldPwd;
    }

    public void setOldPwd(String oldPwd) {
        this.oldPwd = oldPwd;
    }

    public String getNewPwd() {
        return newPwd;
    }

    public void setNewPwd(String newPwd) {
        this.newPwd = newPwd;
    }
}
